<template>
  <div class="app-container">
    <el-row :gutter="15">
      <el-col :span="8">
        <DictLeft :active-row="activeRow" @change="changeCurrentRow" />
      </el-col>
      <el-col :span="16">
        <DictItem :active-row="activeRow" />
      </el-col>
    </el-row>
  </div>
</template>

<script>
import DictLeft from './modules/dictLeft.vue'
import DictItem from './modules/dictItem.vue'

export default {
  name: 'Dict',
  components: { DictLeft, DictItem },
  data() {
    return {
      activeRow: null
    }
  },
  methods: {
    changeCurrentRow(val) {
      this.activeRow = val
    }
  }
}
</script>

<style lang="scss" scoped></style>
